﻿// Decompiled with JetBrains decompiler
// Type: DynamicClipping.CUiDynDynamicClippingApp
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Windows.Forms;
using Tecnomatix.Engineering.Ui;


namespace DynamicClipping;

public class CUiDynDynamicClippingApp
{
  public static int GetClippingPlaneRatio()
  {
    int clippingPlaneRatio = 50;
    object obj;
    TxFormSettings.RestoreFormValue((Form) new CUiDynDynamicClippingForm(), "Configuration", ref obj);
    string str = obj as string;
    if (!string.IsNullOrEmpty(str))
    {
      string[] strArray = str.Split('|');
      if (Convert.ToInt32(strArray[0]) == 2)
        clippingPlaneRatio = Convert.ToInt32(strArray[1]);
    }
    return clippingPlaneRatio;
  }

  public static void SetClippingPlaneRatio(int ratio)
  {
    TxFormSettings.StoreFormValue((Form) new CUiDynDynamicClippingForm(), "Configuration", (object) ("2|" + ratio.ToString()));
  }
}
